package com.bawei.module_documents.manager.model

import com.bawei.module_documents.manager.entity.RequestEntity
import com.bw.documents.manager.entity.*
import kotlinx.coroutines.flow.Flow
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.Multipart
import retrofit2.http.POST
import retrofit2.http.Part

/**
 * @Author : 
 * @Time : On 2023/7/29 11:15
 * @Description : FileApi
 */
interface FileApi {
    //查询文件
    @POST("document/seldocuments")
    suspend fun requestSelDocuments(@Body request: RequestEntity): DocumentsResponseEntity
    //上传文件
    @Multipart
    @POST("fileUpload")
    suspend fun requestUploadDocuments(@Part data:MultipartBody.Part): UploadDocumentsEntity
}